package net.hn.hnms.biz.plan.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.hn.hnms.biz.plan.enums.CompanyType;
import net.hn.hnms.sys.common.core.enums.CoalInfo;

import java.math.BigDecimal;

@Data
@ApiModel("计划完成数据统计")
public class PlanStatisticVO {

    @ApiModelProperty("数据编号")
    private String dataCode;
    @ApiModelProperty("数据名称")
    private String dataName;

    @ApiModelProperty("完成率")
    private BigDecimal percent;

    @ApiModelProperty("计划量")
    private BigDecimal planTotal;

    @ApiModelProperty("完成量")
    private BigDecimal completeTotal;
    @ApiModelProperty("月超欠")
    private BigDecimal monthOverabundance;
    @ApiModelProperty("昨日产量")
    private BigDecimal lastDayOutPut;

    @ApiModelProperty("昨日进尺")
    private BigDecimal lastDayFootage;

    @ApiModelProperty("掘进进尺")
    private BigDecimal footage;

    @ApiModelProperty("昨日计划进尺")
    private BigDecimal lastDayPlanFootage;


    @ApiModelProperty("昨日计划剥离")
    private BigDecimal lastDayPlanPeel;

    @ApiModelProperty("去年产量")
    private BigDecimal lastYearOutPut;

    @ApiModelProperty("去年计划")
    private BigDecimal lastYearPlan;

    @ApiModelProperty("今年计划")
    private BigDecimal nowYearPlan;


    @ApiModelProperty("昨日计划")
    private BigDecimal laseDayPlan;

    @ApiModelProperty("昨日产量")
    private BigDecimal laseDayOutput;


    @ApiModelProperty("核定产能")
    private BigDecimal provedOutput;

    @ApiModelProperty("井工产能")
    private BigDecimal wellProvedOutput;

    @ApiModelProperty("露天产能")
    private BigDecimal dewProvedOutput;

    @ApiModelProperty("月计划")
    private BigDecimal monthPlan;

    @ApiModelProperty("月产量")
    private BigDecimal monthOutput;

    @ApiModelProperty("矿类别")
    private String typeName;


    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("矿名称")
    private String mineName;


    @ApiModelProperty("公司编码")
    private String mineCode;

    @ApiModelProperty("集团编码")
    private String companyCode;


    public void setCompanyName(String companyName) {

        this.companyName = CompanyType.getNameByCode(companyName);
    }

    public void setCompanyNames(String companyCode) {

        this.companyName = CoalInfo.getCompanyNameByCompanyCode(companyCode);
    }
    public void setMineNames(String mineName) {

        this.mineName = CoalInfo.getMineNameByMineCode(mineName);
    }

}
